package com.lin.boot.order.state;

import lombok.extern.slf4j.Slf4j;

/**
 * @作者: 林江
 * @创建时间: 2024/9/29
 */
@Slf4j
public class AbstractOrderState implements OrderState {
    String desc;

    public AbstractOrderState(String desc) {
        this.desc = desc;
    }

    @Override
    public OrderState submit() {
        log.error("当前状态为：" + desc + "，不支持提交操作");
        return this;
    }

    @Override
    public OrderState confirm() {
        log.error("当前状态为：" + desc + "，不支持确认支付操作");
        return this;
    }

    @Override
    public OrderState cancel() {
        log.error("当前状态为：" + desc + "，不支持取消支付操作");
        return this;
    }

    @Override
    public OrderState deliver() {
        log.error("当前状态为：" + desc + "，不支持发货操作");
        return this;
    }

    @Override
    public OrderState receive() {
        log.error("当前状态为：" + desc + "，不支持收货操作");
        return this;
    }

    @Override
    public OrderState refuse() {
        log.error("当前状态为：" + desc + "，不支持拒收操作");
        return this;
    }

    @Override
    public OrderState evaluate() {
        log.error("当前状态为：" + desc + "，不支持评价操作");
        return this;
    }
}
